package com.trainoo.alibaba.nacos;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: zt
 * @Date: 2019/12/11 17:50
 * @Description:
 */
@EnableDiscoveryClient
@SpringBootApplication
public class NacosDiscoveryApplication {

    public static void main(String[] args) {
        SpringApplication.run(NacosDiscoveryApplication.class);
    }

    @Slf4j
    @RestController
    static class TestController {
        @GetMapping("/hello")
        public  String testHttp(){
            log.info("hello world");
            return "hello world";
        }
    }
}
